<script setup>
import {
  ref
} from 'vue'
import PageModel from '@/frame/view/page-model/index.vue'

/**
 * 页面基础
 */
const PageModelRef = ref()
const config = {
  url: "/api/WarehouseInventory",
  method: "get",
  otherParams: {
    currentPage: 1,
    pageSize: 9999
  },
  header: {
    text: "仓库库存",
    back: true
  },
  search: {
    initData: "",
    prop: "goods",
    placeholder: "物料编码/名称/规格"
  }
}
</script>

<template>
  <PageModel ref="PageModelRef" :config="config">
    <template #item="{item}">
      <view class="item">
        <view class="item-top">
          <view class="top-left">
            {{ item.goodsCode }}
          </view>
          <view class="item-right">
            {{ item.number_Real }}
          </view>
        </view>
        <view class="item-content">
          物料名称：{{ item.goodsName }}
        </view>
        <view class="item-content">
          物料规格：{{ item.goodsSpec }}
        </view>
        <view class="item-content">
          仓库编码：{{ item.warehouseCode }}
        </view>
        <view class="item-content">
          仓库名称：{{ item.warehouseName }}
        </view>
        <view class="item-content">
          仓位编码：{{ item.warehousePositionCode }}
        </view>
        <view class="item-content">
          仓位名称：{{ item.warehousePositionName }}
        </view>
      </view>
    </template>
  </PageModel>
</template>

<style lang="scss" scoped src="./index.scss">
</style>